<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>General Tags : Ionize User Guide</title>

<style type='text/css' media='all'>@import url('../userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />

<script type="text/javascript" src="../nav/nav.js"></script>
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
<meta name='author' content='Ionize Dev Team' />
<meta name='description' content='Ionize User Guide' />

</head>
<body>

<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
<div id="nav2" onclick="myHeight.toggle();"><a name="top"></a><a href="javascript:void(0);"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Ionize User Guide Version 0.9.7</h1></td>
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
<a href="http://www.ionizecms.com/">Ionize Home</a> &nbsp;&#8250;&nbsp;
<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
General Tags
</td>
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="ionizecms.com/user-guide" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td>
</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />


<!-- START CONTENT -->
<div id="content">

<h1>General Tags</h1>



<h2>setting</h2>

<p>Returns one website setting value</p>

<pre>
&lt;ion:setting item="theme" />
</pre>

<h3>Attributes</h3>

<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
	<th>Attribute</th>
	<th>Optional</th>
	<th>Values</th>
</tr>
<tr>
	<td class="td"><kbd>item</kbd></td>
	<td class="td">no</td>
	<td class="td">
		<strong>site_title</strong> : Website title<br/>
		<strong>files_path</strong> : Media folder name, without trailing slash<br/>
		<strong>theme</strong> : Current theme name<br/>
		<strong>google_analytics</strong> : Google Analytics code<br/>
	</td>
</tr>
</table>





<h2>site_title</h2>

<p>Returns the website title as set in <var>Settings > Website settings...</var></p>
<p>Same as &lt;ion:setting item="site_title" /></p>

<pre>
&lt;ion:site_title />
</pre>




<h2>base_url</h2>

<p>Returns the website base URL, with or without the lang URL.</p>
<p>Example : <var>http://my_domain.tld/</var></p>


<pre>
&lt;ion:base_url [ lang=”true/false” force_lang=”true/false” ] />
</pre>

<h3>Attributes</h3>

<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
	<th>Attribute</th>
	<th>Optional</th>
	<th>Values</th>
	<th>Description</th>
</tr>
<tr>
	<td class="td"><strong>lang</strong></td>
	<td class="td">yes</td>
	<td class="td">true / false</td>
	<td class="td">If more than one language are defined, add the lang code in the produced URL.</td>
</tr>
<tr>
	<td class="td"><strong>force_lang</strong></td>
	<td class="td">yes</td>
	<td class="td">true / false</td>
	<td class="td">If set to true, it will add the language code to the URL, even there is only one language defined or online for the website. Can be used without the lang attribute.</td>
</tr>
</table>



<h2>theme_url</h2>

<p>Returns the website theme complete URL, with trailing slash. Useful for accessing assets (CSS, images).</p>
<p>Examples :  <var>http://your_domain.tld/themes/your_theme/</var></p>

<pre>
&lt;html>
&lt;head>
    &lt;link rel="stylesheet" href="&lt;ion:theme_url />assets/css/style.css" />
&lt;/head>
</pre>



<h2>meta_title</h2>

<p>Displays the <strong>window's browser's title</strong> of the displayed page.<br/>
This title can be set on an article or on a page. If not set, it will return the page title.</p>

<p>Returns :</p>
<ol>
	<li>The current displayed <kbd>article meta_title</kbd> value if not empty,</li>
	<li>else the <kbd>page meta_title</kbd> if not empty,</li>
	<li>else the current <kbd>page title</kbd> value.</li>
</ol>

<pre>
&lt;html>
&lt;head>
    &lt;title>&lt;ion:site_title/> - &lt;ion:meta_title/>&lt;/title>
&lt;/head>
</pre>



<h2>meta_description</h2>

<p>Returns :</p>
<ol>
	<li>the current <kbd>page Meta Description</kbd> if set for the current visited page,</li>
	<li>else the <kbd>website language Meta Description</kbd>.</li>
</ol>

<pre>
&lt;html>
&lt;head>
    &lt;meta name="description" content="&lt;ion:meta_description />" />
&lt;/head>
</pre>



<h2>meta_keywords</h2>

<p>Returns : </p>
<ol>
	<li>the current <kbd>page Meta Keywords</kbd> if set for the current visited page,</li>
	<li>else the <kbd>website language Meta Keywords</kbd>.</li>
</ol>

<pre>
&lt;html>
&lt;head>
    &lt;meta name="keywords" content="&lt;ion:meta_keywords />" />
&lt;/head>
</pre>


<h2>current_lang</h2>

<p>Returns the current lang code, on 2 or 3 chars</p>

<pre>
&lt;html>
&lt;head>
    &lt;meta http-equiv="Content-Language" content="&lt;ion:current_lang />" />
&lt;/head>
</pre>


<h2>google_analytics</h2>

<p>Shortcut for <&lt;ion:setting item="google_analytics" /></p>
<p>Returns the Google Analytics code as set in the panel : <var>Settings > Advanced Panel > Statistics</var></p>

<pre>
&lt;!-- Code in view -->

&lt;ion:google_analytics />


&lt;!-- Returns -->

&lt;script type="text/javascript">
   var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
   document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
&lt;/script>
&lt;script type="text/javascript">
   var pageTracker = _gat._getTracker("UA-0000000-00");
   pageTracker._trackPageview();
&lt;/script>
</pre>




</div>
<!-- END CONTENT -->


<div id="footer">
<p>
Previous Topic:&nbsp;&nbsp;<a href="---.html">---</a>
&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Next Topic:&nbsp;&nbsp;<a href="---.html">---</a>
</p>
<p><a href="http://www.ionizecms.com/">Ionize website</a></p>
</div>

</body>
</html>